Method for collecting statistical traffic data

ABSTRACT

As shown in FIG.  2,  when the SYN segment is detected, the amount of transmitted segment from the side which sent the detected SYN segment is obtained by counting the continuously detected DATA segments for collecting the traffic in a certain direction where it is impossible to directly capture the traffic. Further, the amount [ini_sdt] of the transmitted bytes from the side which sent the detected SYN segment is obtained by calculating the equation [ini_sdt]=[SEQn+LENn]−[SEQ1]. Wherein, [SEQ1] is the sequence number of the first detected DATA segment, [SEQn] is the sequence number of the last detected DATA segment and [LENn] is the user data length of the last detected DATA segment.

[0001] The entire disclosure of Japanese Patent Application No.2000-90661 filed on Mar. 29, 2000 including specification, claims, drawings and summary is incorporated herein by reference in its entirety.

FIELD OF THE INVENTION

[0002] The present invention relates to a technique for collecting or gathering statistical traffic data by capturing a TCP/IP traffic which flows on the Internet line. Specially, the present invention enables to collecting, by managing a TCP-level information in a certain direction, a traffic in another direction where it is impossible to directly capture the traffic.

BACKGROUND OF THE INVENTION

[0003] A performance analysis, which measures such statistical traffic data as an amount of transferred data, becomes important according to a spread of the Internet. As described in Japanese Patent laid-open Application No.11-252111, the inventors considered that it was possible to recognise a situation of the Internet by measuring a TCP-level statistical information (for example, an amount of re-transferred data, a waiting time for establishing a connection etc.), then developed a traffic monitor which can collect the TCP-level statistical traffic information in addition to an IP-level information by monitoring a backbone line of the Internet. The traffic monitor was developed under such a condition that it was possible to monitor segments of both directions in a TCP communication on the same line.

[0004] However, as an IP routing is controlled according to each direction, there is a case that traffics of both directions do not flow on the same line. Namely, because it can be considered that a going route and a return route are different each other in a real network configuration, there is a case that traffics of both direction can not be captured.

[0005] It is known the MRTG technique for collecting IP-level statistical traffic information such as an amount of segments per a unit time or an amount of bytes per a unit time respectively in a router. Further, it is known the SNIFFER technique for collecting TCP-level statistical traffic information such as an amount of segments or an amount of bytes respectively at every application in addition to the IP-level statistical traffic information. However, each technique has a condition that it is possible to monitor segments of both direction in the TCP communication on the same line.

[0006] An object of the present invention provides a method for collecting, by managing the TCP-level information in a certain direction, at least a traffic in another direction where it is impossible to directly capture the traffic.

SUMMARY OF THE INVENTION

[0007] A method derived from the preferred embodiment comprises steps of:

[0008] detecting an SYN segment from a traffic in one of two directions on the Internet line;

[0009] detecting a DATA segment, which belongs to the same connection as the detected SYN segment, from said traffic; and

[0010] obtaining at least one of an amount of transmitted segment from a side which sent the detected SYN segment, and an amount of transmitted bytes from said side; wherein said amount of transmitted segment being obtained by counting a total amount of said detected DATA segment, and said amount of transmitted bytes being obtained by calculating a difference between a sequence number of the first detected DATA segment, and a sum of a sequence number of the last detected DATA segment and a user data length of said last detected DATA segment.

[0011] Another method derived from the preferred embodiment comprises steps of:

[0012] detecting an SYN+ACK segment from a traffic in one of two directions on the Internet line;

[0013] detecting a DATA segment, which belongs to the same connection as the detected SYN+ACK segment, from said traffic; and

[0014] obtaining at least one of an amount of transmitted segment from a side which sent the detected SYN+ACK segment, and an amount of transmitted bytes at said side; wherein said amount of transmitted segment being obtained by counting a total amount of said detected DATA segment, and said amount of transmitted bytes being obtained by calculating a difference between a sequence number of the first detected DATA segment, and a sum of a sequence number of the last detected DATA segment and a user data length of said last detected DATA segment.

[0015] Another method derived from the preferred embodiment comprises steps of:

[0016] detecting an SYN segment from a traffic in one of two directions on the Internet line;

[0017] detecting an ACK segment and a DATA segment, each of which belongs to the same connection as the detected SYN segment, from said traffic; and

[0018] calculating, as an amount of received data at a side which sent the detected SYN segment, a difference between an acknowledgment number of the first detected ACK segment or DATA segment and an acknowledgement number of the last detected ACK segment or DATA segment.

[0019] Another method derived from the preferred embodiment comprises steps of:

[0020] detecting an SYN+ACK segment from a traffic in one of two directions on the Internet line;

[0021] detecting an ACK segment and a DATA segment, each of which belongs to the same connection as the detected SYN+ACK segment, from said traffic; and

[0022] calculating, as an amount of received data at a side which sent the detected SYN+ACK segment, a difference between an acknowledgment number of the first detected ACK segment or DATA segment and an acknowledgement number of the last detected ACK segment or DATA segment.

[0023] Another method derived from the preferred embodiment comprises steps of:

[0024] detecting an SYN segment from a traffic in one of two directions on the Internet line;

[0025] detecting a DATA segment, which belongs to the same connection as the detected SYN segment, from said traffic;

[0026] determining a sequence number of a DATA segment to be sent next, at every detection of the DATA segment, based on a sequence number of the detected DATA segment;

[0027] judging, at every detection of the DATA segment, whether a sequence number of the newly detected DATA segment is less than said determined sequence number at the last DATA segment detection; and

[0028] obtaining, when the sequence number of the newly detected DATA segment is less than said determined sequence number, at least one of a new amount of re-transmitted segment at a side which sent the detected SYN segment, and a new amount of re-transmitted bytes at said side; wherein said new amount of re-transmitted segment being obtained by adding 1 to the last obtained amount of re-transmitted segment, and said new amount of re-transmitted bytes being obtained by adding a smaller one out of a first value and a second value to the last obtained amount of re-transmitted segment, wherein the first value being a difference between said determined sequence number and a sequence number of said newly detected DATA segment, and the second value being a user data length of said newly detected DATA segment.

[0029] Another method derived from the preferred embodiment comprises steps of:

[0030] detecting an SYN+ACK segment from a traffic in one of two directions on the Internet line;

[0031] detecting a DATA segment, which belongs to the same connection as the detected SYN+ACK segment, from said traffic;

[0032] determining a sequence number of a DATA segment to be sent next, at every detection of the DATA segment, based on a sequence number of the detected DATA segment;

[0033] judging, at every detection of the DATA segment, whether a sequence number of the newly detected DATA segment is less than said determined sequence number at the last DATA segment detection; and

[0034] obtaining, when the sequence number of the newly detected DATA segment is less than said determined sequence number, at least one of a new amount of re-transmitted segment at a side which sent the detected SYN+ACK segment, and a new amount of re-transmitted bytes at said side; wherein said new amount of re-transmitted segment being obtained by adding 1 to the last obtained amount of re-transmitted segment, and said new amount of re-transmitted bytes being obtained by adding a smaller one out of a first value and a second value to the last obtained amount of re-transmitted segment, wherein the first value being a difference between said determined sequence number and a sequence number of said newly detected DATA segment, and the second value being a user data length of said newly detected DATA segment.

[0035] Another method derived from the preferred embodiment comprises steps of:

[0036] detecting an SYN segment from a traffic in one of two directions on the Internet line;

[0037] detecting an ACK segment, which belongs to the same connection as the detected SYN segment, from said traffic;

[0038] determining an acknowledgment number of an ACK segment to be sent next and a window size of an ACK segment having the maximum acknowledgment number, at every detection of the ACK segment, based on an acknowledgment number of the detected ACK segment;

[0039] judging, at every detection of the ACK segment, whether both of an acknowledgment number and a window size of the newly detected ACK segment are equal to said determined acknowledgment number and said determined window size at the last ACK segment detection; and

[0040] obtaining, when both of the acknowledgment number and the window size of the newly detected two or more ACK segments are equal to said determined acknowledgment number and said determined window size, a new amount of missing DATA segment at a side which sent the detected SYN segments, by adding 1 to the last obtained amount of missing DATA segment.

[0041] Another method derived from the preferred embodiment comprises steps of:

[0042] detecting an SYN+ACK segment from a traffic in one of two directions on the Internet line;

[0043] detecting an ACK segment, which belongs to the same connection as the detected SYN+ACK segment, from said traffic;

[0044] determining an acknowledgment number of an ACK segment to be sent next and a window size of an ACK segment having the maximum acknowledgment number, at every detection of the ACK segment, based on an acknowledgment number of the detected ACK segment;

[0045] judging, at every detection of the ACK segment, whether both of an acknowledgment number and a window size of the newly detected ACK segment are equal to said determined acknowledgment number and said determined window size at the last ACK segment detection; and

[0046] obtaining, when both of the acknowledgment number and the window size of the newly detected two or more ACK segments are equal to said determined acknowledgment number and said determined window size, a new amount of missing DATA segment at a side which sent the detected SYN+ACK segments, by adding 1 to the last obtained amount of missing DATA segment.

[0047] Another method derived from the preferred embodiment comprises steps of:

[0048] detecting an SYN segment from a traffic in one of two directions on the Internet line;

[0049] detecting continuous plural DATA segments and continuous plural ACK segments in succession to the DATA segments, all of which belong to the same connection as the detected SYN segment, from said traffic; and

[0050] obtaining at least one of an HTTP response time at a side which sent the detected SYN segment, and an HTTP throughput at said side; wherein said HTTP response time being obtained by calculating a time difference from the last detection of the DATA segment to the first detection of the ACK segment, and said HTTP throughput being obtained by calculating a ratio of a difference, between an acknowledgement number of the first detected ACK segment and an acknowledgement number of the last detected ACK segment, to a time difference from the first detection of the ACK segment to the last detection of the ACK segment.

[0051] In the method, it is possible to efficiently avoid an extraordinary amount by calculating the HTTP throughput only when the continuous ACK segments than a predetermined quantity such as 10 are detected.

[0052] Another method derived from the preferred embodiment comprises steps of:

[0053] detecting an SYN+ACK segment from a traffic in one of two directions on the Internet line;

[0054] detecting continuous plural ACK segments and continuous plural DATA segments in succession to the ACK segments, all of which belong to the same connection as the detected SYN+ACK segment, from said traffic; and

[0055] obtaining at least one of an HTTP response time at a side which sent the detected SYN+ACK segment, and an HTTP throughput at said side; wherein said HTTP response time being obtained by calculating a time difference from the last detection of the ACK segment to the first detection of the DATA segment, and said HTTP throughput being obtained by calculating a ratio of a difference, between a sequence number of the first detected DATA segment and a sum of a sequence number of the last detected DATA segment and a user data length of the last detected DATA segment, to a time difference from the first detection of the DATA segment to the last detection of the DATA segment.

[0056] In the method, it is possible to efficiently avoid an extraordinary amount by calculating the HTTP throughput only when the continuous ACK segments than a predetermined quantity such as 10 are detected.

[0057] Another method derived from the preferred embodiment comprises steps of:

[0058] detecting an SYN+ACK segment from a traffic in one of two directions on the Internet line;

[0059] detecting continuous plural ACK segments, which belong to the same connection as the detected SYN+ACK segment, from said traffic; and

[0060] calculating, as an FTP throughput at a side which sent the detected SYN+ACK segment, a ratio of a difference, between an acknowledgement number of the first detected ACK segment and an acknowledgement number of the last detected ACK segment, to a time difference from the first detection of the ACK segment to the last detection of the ACK segment.

[0061] In the method, it is possible to efficiently avoid an extraordinary amount by calculating the FTP throughput only when the continuous ACK segments than a predetermined quantity such as 10 are detected.

[0062] Another method derived from the preferred embodiment comprises steps of:

[0063] detecting an SYN segment from a traffic in one of two directions on the Internet line;

[0064] detecting continuous plural DATA segments, which belong to the same connection as the detected SYN segment, from said traffic; and

[0065] calculating, as an FTP throughput at a side which sent the detected SYN segment, a ratio of a difference, between a sequence number of the first detected DATA segment and a sum of a sequence number of the last detected DATA segment and a user data length of the last detected DATA segment, to a time difference from the first detection of the DATA segment to the last detection of the DATA segment.

[0066] In the method, it is possible to efficiently avoid an extraordinary amount by calculating the FTP throughput only when the continuous DATA segments than a predetermined quantity such as 10 are detected.

BRIEF DESCRIPTION OF THE DRAWINGS

[0067]FIG. 1 shows a sample of the apparatus which can collects the statistical traffics in both directions.

[0068]FIG. 2 shows a sample of the sequence chart for collecting the amount of the transmitted data at the side which sends the SYN segment.

[0069]FIG. 3 shows a sample of the sequence chart for collecting the amount of the transmitted data at the side which sends the SYN+ACK segment.

[0070]FIG. 4 shows a sample of the sequence chart for collecting the amount of the received data at the side which sends the SYN segment.

[0071]FIG. 5 shows a sample of the sequence chart for collecting the amount of the received data at the side which sends the SYN+ACK segment.

[0072]FIG. 6(a) shows a sample of the sequence chart for collecting the amount of the received data.

[0073]FIG. 6(b) shows a sample of the duplicated bytes.

[0074]FIG. 7 shows a sample of the sequence chart for collecting the amount of the missing segment.

[0075]FIG. 8(a) shows a sample of the sequence chart for collecting the HTTP response time and the HTTP throughput.

[0076]FIG. 8(b) shows a sample of the sequence chart for collecting the HTTP response time and the HTTP throughput.

[0077]FIG. 9(a) shows a sample of the sequence chart for collecting the FTP throughput.

[0078]FIG. 9(b) shows a sample of the sequence chart for collecting the FTP throughput.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

[0079] Referring to the drawings, embodiments of the present invention will be described.

[0080]FIG. 1 shows a configuration of an apparatus, which attains the present invention, for collecting statistical traffic information in both directions. The apparatus 1 shown in FIG. 1 comprises a module 2 for capturing segments, an analysis module 3, a storing module 4, a memory 5 for storing a status transition table and a memory 6 for storing a traffic information or data. The apparatus 1 collects, as a traffic information, a TCP-level information and an application-level information (for example; an HTTP-level information, an FTP-level information) as shown in below list.

[0081] (1) List of TCP-Level Information

[0082] An amount of transmitted segment from an SYN segment sending side

[0083] An amount of transmitted bytes from an SYN segment sending side

[0084] An amount of transmitted segment from an SYN+ACK segment sending side

[0085] An amount of transmitted bytes from an SYN+ACK segment sending side

[0086] An amount of received data (received bytes) at an SYN segment sending side

[0087] An amount of received data (received bytes) at an SYN+ACK segment sending side

[0088] An amount of re-transmitted segment from an SYN segment sending side

[0089] An amount of re-transmitted bytes from an SYN segment sending side

[0090] An amount of re-transmitted segment from an SYN+ACK segment sending side

[0091] An amount of re-transmitted bytes from an SYN+ACK segment sending side

[0092] An amount of missing DATA segment at an SYN segment sending side

[0093] An amount of missing DATA segment at an SYN+ACK segment sending side

[0094] (2) List of HTTP-Level Information

[0095] A response time at an SYN segment sending side

[0096] A throughput at an SYN segment sending side

[0097] A response time at an SYN+ACK segment sending side

[0098] A throughput at an SYN+ACK segment sending side

[0099] (3) List of FTP-Level Information

[0100] A throughput at an SYN+ACK segment sending side

[0101] A throughput at an SYN segment sending side

[0102] The module 2 is connected with an Internet line 15. For example, the line is a backbone line which composes a part of the Internet. The module 2 captures a segment (called a packet) by monitoring a traffic on the line 15, for example, in a predetermined period, then sends the captured segment to the module 3.

[0103] In a network shown in FIG. 1, a terminal(A) 7 is connected with the Internet 10 via two routers 12, 13 which connected with each other, a terminal(B) 8 and a terminal(C) 9 are connected with the Internet 10 via a common router 14, the module 2 is connected with the Internet 10 between the router 11 and the router 12. Accordingly, there are a route via the routers 11 and 12, and a route via the routers 11 and 13 between the terminal(A) 7 and the Internet 10.

[0104] In the network shown in FIG. 1, it is assumed that a traffic from the terminal(A) 7 to the terminal(B) 8 flows, as shown by a solid line 16 a, via the router 11, the router 12, the Internet 10 and the router 14 successively. It is also assumed that a traffic from the terminal(B) 8 to the terminal(A) 7 flows, as shown by a solid line 16 b, via the router 14, the Internet 10, the router 13 and the router 13 successively. In this case, the module 2 can only capture the traffic in one direction shown by the solid line 16 a. In other words, the module 2 can not capture the traffic in other direction shown by the solid line 16 b.

[0105] Further, it is assumed that a traffic from the terminal (C) 7 to the terminal(A) 7 flows, as shown by a dotted line 17 a, via the router 14, the Internet 10, the router 12 and the router 11 successively. It is also assumed that a traffic from the terminal(A) 7 to the terminal(C) 9 flows, as shown by a solid line 17 b, via the router 11, the router 13, the Internet 10 and the router 14 successively. In this case, the module 2 can only capture the traffic in one direction shown by the dotted line 17 a. In other words, the module 2 can not capture the traffic in other direction shown by the solid line 17 b.

[0106] The module 3 calculates such a statistical traffic information as an amount of the transferred data, based on the segment captured by the module 2.

[0107] In the calculation, the module 3 identifies a type of the captured segment by using six flag bits in a TCP header of the captured segment.

[0108] A segment of which SYN bit only is “1” is called an SYN segment, and a segment of which SYN bit and ACK bit only are “1” is called an SYN+ACK segment.

[0109] A segment of which SYN bit only is “1” among the SYN bit, an FIN bit and the ACK bit, and which has a user data, is called a DATA segment. A segment of which SYN bit only is “1” among the SYN bit, an FIN bit and the ACK bit, but which has not the user data, is called a ACK segment.

[0110] Further, the module 3 identifies a connection to which the captured segment belongs, for example, based on an IP address included in the captured segment.

[0111] When the captured segment is the DATA segment, the module 3 identifies its sequence number, a user data length and an acknowledgment number. When the captured segment is the ACK segment, the module 3 identifies its acknowledgment number.

[0112] Further, the module 3 determines a sequence number [seq_nxt] of a DATA segment to be sent next by referring to the status transition table stored in the memory 5, at every detection of the DATA segment, based on a sequence number of the already detected DATA segment, then the module 3 manages the next sequence number [seq_nxt]. The next sequence number [seq_nxt] is equal to the maximum sequence number which already transferred.

[0113] The module 3 determines an acknowledgment [ack_nxt] of an ACK segment to be sent next by referring to the status transition table stored in the memory 5, at every detection of the ACK segment, based on an acknowledgment number of the already detected ACK segment, then the module 3 manages the next sequence number [seq_nxt]. The module 3 also determines a window size [win] of the detected ACK segment having the maximum acknowledgment number by referring to the status transition table stored in the memory 5, at every detection of the ACK segment, based on an acknowledgment number of the detected ACK segment.

[0114] The module 4 stores the calculated traffic information from he module 3 in the memory 5. The traffic information is classified by an IP address or a connection or an application.

[0115] Examples of the calculation in the module will be explained. It is possible to identify whether a communication is a communication from a client or a communication from a server by identifying whether the captured traffic is a traffic from a side which sent the SYN segment or a traffic from a side which sent the SYN+ACK segment.

[0116] [Collection of an Amount of Transmitted Data at the Side Which Sent the SYN Segment]

[0117] Referring to a sequence chart shown in FIG. 2, an amount of transmitted data from the side which sent the SYN segment will be explained. There are an amount of transmitted segment and an amount of transmitted bytes as the amount of transmitted data. To collect the amount of transmitted data, from a traffic in a direction which can be monitored, the SYN segment is detected, further the DATA segment, which belongs to the same connection as the detected SYN segment is detected.

[0118] As shown in FIG. 2, when the SYN segment is detected in the monitored direction, the amount of transmitted segment, at the side which sent the detected SYN segment, is obtained by counting a total amount of the continuously detected plural DATA segments.

[0119] As shown in FIG. 2, when the SYN segment is detected in the monitored direction, the amount [ini_sdt] of transmitted bytes, at the side which sent the detected SYN segment, is obtained by calculating the following equation (1). Wherein, [SEQ1] denotes a sequence number of the first detected DATA segment among the continuously detected plural DATA segments, [SEQn] denotes a sequence number of the last detected DATA segment and [LENn] denotes a user data length of the last detected DATA segment.

ini _(—) sdt=(SEQn+LENn)−SEQ1  equation (1)

[0120] Namely, the amount [ini_sdt] of transmitted bytes is a difference between the sequence number [SEQ1] of the first detected DATA segment, and a sum of the sequence number [SEQn] of the last detected DATA segment and the user data length [LENn] of the last detected DATA segment.

[0121] It is possible to calculates only one of the amount of transmitted segment and the amount of transferred bytes.

[0122] [Collection of an Amount of Transmitted Data from the Side Which Sent the SYN+ACK Segment]

[0123] Referring to a sequence chart shown in FIG. 3, an amount of transmitted data at the side which sent the SYN+ACK segment will be explained. There are an amount of transmitted segment and an amount of transmitted bytes as the amount of transmitted data. To collect the amount of transmitted data, from a traffic in a direction which can be monitored, the SYN+ACK segment is detected, further the DATA segment, which belongs to same connection as the detected SYN+ACK segment is detected.

[0124] As shown in FIG. 3, when the SYN+ACK segment is detected in the monitored direction, the amount of transmitted segment, at the side which sent the detected SYN+ACK segment, is obtained by counting a total amount of the continuously detected plural DATA segments.

[0125] As shown in FIG. 3, when the SYN+ACK segment is detected in the monitored direction, the amount [rsp_sdt] of transmitted bytes, at the side which sent the detected SYN+ACK segment, is obtained by calculating the following equation (2). Wherein, [SEQ1] denotes a sequence number of the first detected DATA segment among the continuously detected plural DATA segments, [SEQn] denotes a sequence number of the last detected DATA segment and [LENn] denotes a user data length of the last detected DATA segment.

rsp _(—) sdt=(SEQn+LENn)−SEQ1  equation (2)

[0126] Namely, the amount [rsp_sdt] of transmitted bytes is a difference between the sequence number [SEQ1] of the first detected DATA segment, and a sum of the sequence number [SEQn] of the last detected DATA segment and the user data length [LENn] of the last detected DATA segment.

[0127] It is possible to calculates only one of the amount of transmitted segment and the amount of transferred bytes.

[0128] [Collection of an Amount of Received Data at the Side Which Sent the SYN Segment]

[0129] Referring to a sequence chart shown in FIG. 4, an amount of received data at the side which sent the SYN segment will be explained. To collect the amount of received data, from a traffic in a direction which can be monitored, the SYN segment is detected, further the ACK segment and the DATA segment, all of which belong to same connection as the detected SYN segment is detected.

[0130] As shown in FIG. 4, when the SYN segment is detected in the monitored direction, the amount [ini_rdt] of received bytes, at the side which sent the detected SYN segment, is obtained by calculating the following equation (3). Wherein, [ACK1] denotes an acknowledgment number of the first detected ACK segment or the first detected DATA segment among the continuously detected ACK segment and DATA segment, [ACKn] denotes an acknowledgment number of the last detected ACK segment or the last detected DATA segment.

ini _(—) rdt=ACKn−ACK1  equation (3)

[0131] Namely, the amount [ini_rdt] of received data is a difference between the acknowledgment number [ACK1] of the first detected ACK or DATA segment and the acknowledgment number [ACKn] of the last detected ACK or DATA segment.

[0132] [Collection of an Amount of Received Data at the Side Which Sent the SYN+ACK Segment]

[0133] Referring to a sequence chart shown in FIG. 5, an amount of received data at the side which sent the SYN+ACK segment will be explained. To collect the amount of received data, from a traffic in a direction which can be monitored, the SYN+ACK segment is detected, further the ACK segment and the DATA segment, all of which belong to same connection as the detected SYN+ACK segment is detected.

[0134] As shown in FIG. 5, when the SYN+ACK segment is detected in the monitored direction, the amount [rsp_rdt] of received bytes, at the side which sent the detected SYN+ACK segment, is obtained by calculating the following equation (4). Wherein, [ACK1] denotes an acknowledgment number of the first detected ACK segment or the first detected DATA segment among the continuously detected ACK segment and DATA segment, [ACKn] denotes an acknowledgment number of the last detected ACK segment or the last detected DATA segment.

ini _(—) rdt=ACKn−ACK1  equation (4)

[0135] Namely, the amount [rsp_rdt] of received data is a difference between the acknowledgment number [ACK1] of the first detected ACK or DATA segment and the acknowledgment number [ACKn] of the last detected ACK or DATA segment.

[0136] Next, referring to FIGS. 6(a) and 6(b), a re-transferred amount at the side which sent the SYN segment and a re-transferred amount at the side which sent the SYN+ACK segment will be explained. As the re-transferred amount, there are an amount of a re-transferred segment and an amount of a re-transferred bytes.

[0137] [Collection of a Re-Transmitted Amount at the Side Which Sent the SYN Segment]

[0138] To collect the re-transmitted amount from the side which sent the SYN segment, from a traffic in a direction which can be monitored, the SYN segment is detected. Further, the DATA segment, which belongs to same connection as the detected SYN segment, is detected as shown in FIG. 6(a).

[0139] When the DATA segment is detected after the SYN segment in the monitored direction, it is judged whether a sequence number [SEQ] of the newly detected DATA segment is less than the above-mentioned next sequence number [seq_nxt] which was determined at the last DATA segment detection. When the sequence number [SEQ] is less than the next sequence number [seq_nxt], it is judged there was a re-transmission at the side which had sent the SYN segment.

[0140] As indicated by following equation (5), the new amount [ini_ret_num] of re-transmitted segment is obtained by adding 1 to the last obtained amount of re-transmitted segment.

ini _(—) ret _(—) num=ini _(—) ret _(—) num+1  equation (5)

[0141] As indicated by following equation (5), the new amount [ini_ret] of re-transmitted bytes is obtained by adding bytes of a shaded part 18 or a shaded part 19 shown in FIG. 6(b), to the last obtained amount of re-transmitted bytes.

ini _(—) ret=ini _(—) ret+min(seq _(—) nxt−SEQ,LEN)  equation (6)

[0142] Namely, the amount [ini_ret] is obtained by adding a smaller one out of a first value [seq_nxt]−[SEQ] and a second value [LEN] to the last obtained amount of re-transmitted bytes. The first value [seq_nxt]−[SEQ] is a difference between the determined next sequence number [seq_nxt] and a sequence number [SEQ] of the newly detected DATA segment. The second value [LEN] is a user data length of the newly detected DATA segment.

[0143] It is possible to calculates only one of the amount of re-transmitted segment and the amount of re-transmitted bytes.

[0144] In FIG. 6(a), when the second DATA segment (SEQ=1460, LEN=1460) was detected, the next sequence number [seq_nxt] is 2920. Then, the re-transmission is judged by detecting the third DATA segment (SEQ=0, LEN=1460). In this case, as [seq_nxt]−[SEQ]=2920 and [LEN]=1460, the shaded part 18 shown in FIG. 6(b) is 1460 bytes. 1460 bytes are detected as the amount of the re-transmitted bytes at the SYN segment sending side.

[0145] Further in FIG. 6(a), when the fourth DATA segment (SEQ=2920, LEN=1460) was detected, the next sequence number [seq_nxt] is 4380. Then, the re-transmission is judged by detecting the fifth DATA segment (SEQ=4000, LEN=1460). In this case, as [seq_nxt]−[SEQ]=380 and [LEN]=1460, the shaded part 19 shown in FIG. 6(b) is 380 bytes. 380 bytes are added to the last amount (1460 bytes), then the new amount of re-transmitted bytes becomes 1840 (=1460+380).

[0146] [Collection of a Re-Transmitted Amount from the Side Which Sent the SYN+ACK Segment]

[0147] To collect the re-transmitted amount at the side which sent the SYN+ACK segment, from a traffic in a direction which can be monitored, the SYN+ACK segment is detected. Further, the DATA segment, which belongs to same connection as the detected SYN+ACK segment, is detected as shown in FIG. 6(a).

[0148] When the DATA segment is detected after the SYN+ACK segment in the monitored direction, it is judged whether a sequence number [SEQ] of the newly detected DATA segment is less than the above-mentioned next sequence number [seq_nxt] which was determined at the last DATA segment detection. When the sequence number [SEQ] is less than the next sequence number [seq_nxt], it is judged there was a re-transmission at the side which had sent the SYN+ACK segment.

[0149] As indicated by following equation (7), the new amount [rsp_ret_num] of re-transmitted segment is obtained by adding 1 to the last obtained amount of re-transmitted segment.

rsp _(—) ret _(—) num=rsp _(—) ret _(—) num+1  equation (7)

[0150] As indicated by following equation (8), the new amount [rsp_ret] of re-transmitted bytes is obtained by adding bytes of a shaded part 18 or a shaded part 19 shown in FIG. 6(b), to the last obtained amount of re-transmitted bytes.

rsp _(—) ret=rsp _(—) ret+min(seq _(—) nxt−SEQ,LEN)  equation (8)

[0151] Namely, the amount [rsp_ret] is obtained by adding a smaller one out of a first value [seq_nxt]−[SEQ] and a second value [LEN] to the last obtained amount of re-transmitted bytes. The first value [seq_nxt]−[SEQ] is a difference between the determined next sequence number [seq_nxt] and a sequence number [SEQ] of the newly detected DATA segment. The second value [LEN] is a user data length of the newly detected DATA segment.

[0152] It is possible to calculates only one of the amount of re-transmitted segment and the amount of re-transmitted bytes.

[0153] Next, referring to FIG. 7, an amount of missing DATA segment at the side which sent the SYN segment and an amount of missing DATA segment at the side which sent the SYN+ACK segment will be explained.

[0154] [Collection of an Amount of Missing DATA Segment at the Side Which Sent the SYN Segment]

[0155] To collect the amount of missing DATA segment at the side which sent the SYN segment, from a traffic in a direction which can be monitored, the SYN segment is detected. Further, a new ACK segment, which belongs to same connection as the detected SYN segment, is detected as shown in FIG. 7.

[0156] When the new ACK segment is detected after the SYN segment in the monitored direction, an acknowledgment number [ACK] and an window size [WIN] of the newly detected DATA segment are compared with the above-mentioned next acknowledgment number [ack_nxt] and the present window size [win] which were determined at the last ACK segment detection. When both of following equations (9) and (10) are completed, it is judged there was a missing DATA segment at the side which had sent the SYN segment.

ACK=ack_nxt  equation (9)

WIN=win  equation (10)

[0157] Practically, when both of the equations (9) and (10) are completed two or more times about ACK segments of which sets of the acknowledgment number [ACK] and the window size [WIN] are equal to each other, as indicated following equation (11), the new amount [ini_recv_drop_num] of missing DATA segment, at a side which sent the detected SYN segments, is obtained by adding 1 to the last obtained amount of missing DATA segment.

ini _(—) recv _(—) drpo _(—) num=ini _(—) recv _(—) drpo _(—) num+1  equation (11)

[0158] For above-mentioned calculation, a duplicated ACK flag is introduced in this embodiment. A word “dupack” represents the duplicated ACK flag.

[0159] Then, only when a value of the dupack flag is equal to “0” as indicated by following equation (12), it is judged whether both of following equations (13) and (149 are completed. Herein, the equation (13) is equal to the equation (9) and the equation (14) is equal to the equation (10).

dupack=“0”  equation (12)

ACK=ack_nxt  equation (13)

WIN=win  equation (14)

[0160] Further, only when both of the equations (13) and (14) are completed, as indicated by following equation (15), 1 is added to the last obtained amount [ini_recv_drop] of missing DATA segment. Still further, as shown by following equation (16), the value of the dupack flag is changed to “1”. Herein, the equation (13) is equal to the equation (11).

[0161] The value of the dupack flag is managed by the module 3, as follows. (1) An initial value of the dupack flag is set “0”. (dupack=“0”)

[0162] (2) Under the condition of dupack=“0”, the value of the dupack flag is changed from “0” to “1”, when a next ACK segment, which satisfies both of the equations (13) and (14), is detected. (dupack=“1”)

[0163] (3) Under the condition of dupack=“1”, the value of the dupack flag is returned from “1” to “0”, when a next ACK segment, of which any one of acknowledgment number and window size is different from that of the ACK segment by which the value of the dupack flag was changed from “0” to “1”, is detected. (dupack=“0”)

[0164] (4) Under the condition of dupack=“1”, the value of the dupack flag is not changed from “1”, when a next ACK segment, of which both of acknowledgment number and window size is equal to those of the ACK segment by which the value of the dupack flag was changed from “0” to “1”, is detected.

[0165] As mentioned above, when the SYN segment is detected and the ACK segment, which belongs to same connection as the detected SYN segment, is detected, it is judged whether the acknowledgment number [ACK] and window size [WIN] of the detected ACK segment are respectively equal to the determined next acknowledgment number [ack_nxt] and the determined present window size [win].

[0166] At each time when both of the equations (9) and (10) are satisfied by the newly detected two or more ACK segments which have same acknowledgment number and same window size, the new amount [ini_recv_drop_num] of missing DATA segment at the side which sent the detected SYN segments, is obtained by adding 1 to the last obtained amount of missing DATA segment.

[0167] Referring a sequence chart shown in FIG. 7, in the first ACK segment, [ACK]=1460, [WIN]=8192. Then, initially, the next acknowledgment number [ack_nxt] is 1460, the present window size [win] is 8192 and the value of the dupack flag is the initial value “0”.

[0168] Because [ACK]=2920, [WIN]=8192 in the second ACK segment, [ACK] is not equal to [ack_nxt], then, [ack_nxt] is changed to 2920. The value of the dupack flag is not changed from “0”.

[0169] The second ACK segment and the third DATA segment have the same acknowledgment number [ACK=2920] and the same window size [WIN=8192], further these acknowledgment number [ACK=2920] and window size [WIN=8192] are respectively equal to the determined next acknowledgment number [ack_nxt=2920] and the determined present window size [win=8192]. Then, the amount of the missing DATA segment becomes 1 by adding 1 to the last amount (0) of the missing DATA segment and the value of the dupack flag is changed from “0” to “1”, when the third DATA segment is detected.

[0170] The second ACK segment and the fourth DATA segment have the same acknowledgment number [ACK=2920] and the same window size [WIN=8192], further these acknowledgment number [ACK=2920] and window size [WIN=8192] are respectively equal to the determined next acknowledgment number [ack_nxt=2920] and the determined present window size [win=8192]. However, because the value of the dupack flag is “1” when the fourth DATA segment is detected, the amount of the missing DATA segment is not increased and the value of the dupack flag is not changed from “1”.

[0171] The fifth ACK segment has an acknowledgment number [ACK=4380] and an window size [WIN=8192], then the acknowledgment number [ACK=4380] is different from the acknowledgment number [ACK=2920] of the second, third and fourth DATA segment.

[0172] Further, when the fourth DATA segment is detected, the determined next acknowledgment number [ack_nxt] is 2920 and the determined present window size [win] is 8192.

[0173] Therefore, because [ACK] is not equal to [ack_nxt] when the fifth DATA segment is detected, the next acknowledgment number [ack_nxt] changed to 4380 and the value of the dupack flag is returned to “0”.

[0174] The fifth ACK segment and the sixth DATA segment have the same acknowledgment number [ACK=4380] and the same window size [WIN=8192], further these acknowledgment number [ACK=4380] and window size [WIN=8192] are respectively equal to the determined next acknowledgment number [ack_nxt=4380] and the determined present window size [win=8192]. Then, the amount of the missing DATA segment becomes 2 by adding 1 to the last amount (1) of the missing DATA segment and the value of the dupack flag is changed from “0” to “1”, when the sixth DATA segment is detected.

[0175] When the seventh ACK segment and the eighth DATA segment, the amount of the missing DATA segment is not increased. Namely,

[0176] (1) The fifth ACK segment has an acknowledgment number [ACK=5840] and an window size [WIN=8192], then the acknowledgment number [ACK=5840] is different from the acknowledgment number [ACK=4380] of the sixth DATA segment. Further, when the sixth DATA segment is detected, the determined next acknowledgment number [ack_nxt] is 4380 and the determined present window size [win] is 8192. Therefore, because [ACK] is not equal to [ack_nxt] when the seventh DATA segment is detected, the next acknowledgment number [ack_nxt] changed to 5840 and the value of the dupack flag is returned to “0”.

[0177] (2) The eighth ACK segment has an acknowledgment number [ACK=5840] and an window size [WIN=16384], then the window size [WIN=16384] is different from the window size [WIN=8192] of the seventh DATA segment. Further, when the seventh DATA segment is detected, the determined next acknowledgment number [ack_nxt] is 5840 and the determined present window size [win] is 8192. Therefore, because [WIN] is not equal to [win] when the eighth DATA segment is detected, the present window size [win] changed to 16384 and the value of the dupack flag is “0”.

[0178] [Collection of an Amount of Missing DATA Segment at the Side Which Sent the SYN+ACK Segment]

[0179] To collect the amount of missing DATA segment at the side which sent the SYN+ACK segment, from a traffic in a direction which can be monitored, the SYN+ACK segment is detected. Further, a new ACK segment, which belongs to same connection as the detected SYN+ACK segment, is detected as shown in FIG. 7.

[0180] When the new ACK segment is detected after the SYN+ACK segment in the monitored direction, an acknowledgment number [ACK] and an window size [WIN] of the newly detected DATA segment are compared with the above-mentioned next acknowledgment number [ack_nxt] and the present window size [win] which were determined at the last ACK segment detection.

[0181] By introducing the dupack flag as mentioned in collecting the amount of missing DATA segment at the side which sent the SYN segment, is judged whether all of following equations (17), (18) and (19) are satisfied.

dupack=“0”  equation (17)

ACK=ack_nxt  equation (18)

WIN=win  equation (19)

[0182] Under the condition of dupack=“0” as indicated by the equation (17), when both of the equations (18) and (19) are completed, as indicated following equation (20), the new amount [rsp_recv_drop_num] of missing DATA segment, at a side which sent the detected SYN segments, is obtained by adding 1 to the last obtained amount of missing DATA segment, further the value of the dupack flag is changed from “0” to “1” as indicated following equation (21).

rsp _(—) recv _(—) drpo _(—) num=rsp _(—) recv _(—) drpo _(—) num+1  equation (20)

dupck=“1”  equation (21)

[0183] In other words, when the SYN+ACK segment is detected and the ACK segment, which belongs to same connection as the detected SYN+ACK segment, is detected, it is judged whether the acknowledgment number [ACK] and window size [WIN] of the newly detected ACK segment are respectively equal to the determined next acknowledgment number [ack_nxt] and the determined present window size [win].

[0184] At each time when both of the equations (18) and (19) are satisfied by the newly detected two or more ACK segments which have same acknowledgment number and same window size, the new amount [rsp_recv_drop_num] of missing DATA segment at the side which sent the detected SYN+ACK segments, is obtained by adding 1 to the last obtained amount of missing DATA segment.

[0185] Next, referring to FIGS. 8(a) and 8(b), an HTTP response time and an HTTP throughput will be explained.

[0186] [Description of HTTP Communication]

[0187] An HTTP communication is achieved by an HTTP request from a client to a server and an HTTP response from the server to the client. The HTTP request and the HTTP response respectively comprise plural DATA segments. Usually, because the HTTP response includes such a content as a text and an image, a total bytes of the DATA segments of the HTTP response is greater than that of the HTTP request. Further, plural ACK segments are sent from the server and the client respectively corresponding to each group of DATA segments from the client and the server.

[0188] [Collection of an HTTP Response Time at a Side Which Sent an SYN Segment]

[0189] Referring to a sequence chart shown in FIG. 8(a), the HTTP response time and the HTTP throughput at a side which sent the SYN segment will be explained. To collect the HTTP response time and the HTTP throughput, from a traffic in a direction which can be monitored, the SYN segment is detected, further continuous plural DATA segments (HTTP request) and continuous plural ACK segments (HTTP response) in succession to the HTTP request (DATA segments), all of which belong to the same connection as the detected SYN segment, are detected.

[0190] The HTTP response time [ini_http_rsp_time], at the side which sent the SYN segment, is obtained by calculating a time difference from the last segment of the HTTP request to the first segment of the HTTP response. A boundary between the HTTP request and the HTTP response is a boundary between the continuous plural DATA segments and the continuous plural ACK segments.

[0191] Therefore as shown in FIG. 8(a), when the SYN segment is detected in the monitored direction, the HTTP response time [ini_http_rsp_time], at the side which sent the detected SYN segment, is obtained by calculating a time difference from the last detection of the DATA segment to the first detection of the ACK segment,

[0192] The HTTP throughput [ini_http_tpt], at the side which sent the SYN segment, is obtained by calculating a ratio of an amount of total bytes of the HTTP response to a time difference between a first segment and a last segment of the HTTP response. It is desirable in a precise to obtain an HTTP throughput during the HTTP response, because the total bytes of the DATA segments of the HTTP response is usually greater than that of the HTTP request.

[0193] As shown in FIG. 8(a), when the SYN segment is detected in the monitored direction, an amount [http_rsp_byt] of the total bytes of the HTTP response is obtained by calculating a difference between an acknowledgment number of the first detected ACK segment and an acknowledgment number of the last detected ACK segment. Further, a time difference [http_rsp_dtime], from the first segment to the last segment of the HTTP response, is obtained by calculating a time difference from the first detection of the ACK segment to the last detection of the ACK segment.

[0194] Further, as indicated in the following equation (22), the HTTP throughput [ini_http_tpt] at the side which sent the SYN segment is obtained by calculating a ratio of the amount [http_rsp_byt] of the total bytes to the time difference [http_rsp_dtime].

ini _(—) http _(—) tpt=http _(—) rsp _(—) byt/http _(—) rsp _(—) dtime  equation (22)

[0195] In the calculation of the HTTP throughput [ini_http_tpt], it is possible to efficiently avoid an extraordinary amount by calculating the HTTP throughput only when the continuously detected ACK segments than a predetermined quantity such as 10.

[0196] It is possible to calculates only one of the HTTP response time and the HTTP throughput. Further, it is possible to obtain the HTTP throughput by calculating a ratio of the amount of the total bytes of the HTTP request, to a time difference between the first segment and the last segment of the HTTP request.

[0197] [Collection of an HTTP Response Time at a Side Which Sent an SYN+ACK Segment]

[0198] Referring to a sequence chart shown in FIG. 8(b), the HTTP response time and the HTTP throughput at a side which sent the SYN+ACK segment will be explained. To collect the HTTP response time and the HTTP throughput, from a traffic in a direction which can be monitored, the SYN+ACK segment is detected, further continuous plural ACK segments (HTTP request) and continuous plural DATA segments (HTTP response) in succession to the HTTP request (ACK segments), all of which belong to the same connection as the detected SYN+ACK segment, are detected.

[0199] The HTTP response time [rsp_http_rsp_time], at the side which sent the SYN+ACK segment, is obtained by calculating a time difference from the last segment of the HTTP request to the first segment of the HTTP response. A boundary between the HTTP request and the HTTP response is a boundary between the continuous plural ACK segments and the continuous plural DATA segments.

[0200] Therefore as shown in FIG. 8(b), when the SYN+ACK segment is detected in the monitored direction, the HTTP response time [rsp_http_rsp_time], at the side which sent the detected SYN+ACK segment, is obtained by calculating a time difference from the last detection of the ACK segment to the first detection of the DATA segment,

[0201] The HTTP throughput [rsp_http_tpt], at the side which sent the SYN+ACK segment, is obtained by calculating a ratio of an amount of total bytes of the HTTP response to a time difference between a first segment and a last segment of the HTTP response. It is desirable in a precise to obtain an HTTP throughput during the HTTP response, because the total bytes of the DATA segments of the HTTP response is usually greater than that of the HTTP request.

[0202] As shown in FIG. 8(b), when the SYN+ACK segment is detected in the monitored direction, an amount [http_rsp_byt] of the total bytes of the HTTP response is obtained by calculating a difference between a sequence number of the first detected DATA segment, and a sum of a sequence number of the last detected DATA segment and a user data length of the last detected DATA segment. Further, a time difference [http_rsp_dtime], from the first segment to the last segment of the HTTP response, is obtained by calculating a time difference from the first detection of the DATA segment to the last detection of the DATA segment.

[0203] Further, as indicated in the following equation (23), the HTTP throughput [rsp_http_tpt] at the side which sent the SYN+ACK segment is obtained by calculating a ratio of the amount [http_rsp_byt] of the total bytes to the time difference [http_rsp_dtime].

rsp _(—) http _(—) tpt=http _(—) rsp _(—) byt/http _(—) rsp _(—) dtime  equation (23)

[0204] In the calculation of the HTTP throughput [rsp_http_tpt], it is possible to efficiently avoid an extraordinary amount by calculating the HTTP throughput only when the continuously detected ACK segments than a predetermined quantity such as 10.

[0205] It is possible to calculates only one of the HTTP response time and the HTTP throughput. Further, it is possible to obtain the HTTP throughput by calculating a ratio of the amount of the total bytes of the HTTP request, to a time difference from the first segment to the last segment of the HTTP request.

[0206] Next, referring to FIGS. 9(a) and 9(b), an FTP throughput will be explained.

[0207] [Description of FTP Communication]

[0208] An FTP communication is achieved by a control TCP connection for transmitting control data and a data TCP connection for transmitting a file. In the data TCP connection, because DATA segments may be transmitted in large quantities from a server to a client, it is possible to calculate a throughput. Further, ACK segments are transmitted in large quantities from a server to a client, in response to the large quantity of DATA segments from the server. In the data TCP connection, an SYN segment is sent by the server and an SYN+ACK segment is sent by the client.

[0209] [Collection of FTP Throughput at a Side Which Sent SYN+ACK Segment]

[0210] Referring to a sequence chart shown in FIG. 9(a), the FTP throughput at a side which sent the SYN+ACK segment will be explained. To collect the FTP throughput, from a traffic in a direction which can be monitored, the SYN+ACK segment is detected, further continuous plural ACK segments, which belong to the same connection as the detected SYN+ACK segment, are detected.

[0211] In the embodiment, the FTP throughput [ini_ftp_tpt], at the side which sent the SYN+ACK segment, is obtained by calculating a ratio of an amount of total bytes of the file to a time difference between a first segment and a last segment in the file transmission.

[0212] As shown in FIG. 9(a), when the SYN+ACK segment is detected in the monitored direction, an amount [ftp_byt] of the total bytes of the file is obtained by calculating a difference between an acknowledgment number of the first detected ACK segment and an acknowledgment number of the last detected ACK segment. Further, a time difference [ftp_dtime], from the first segment to the last segment in the file transmission, is obtained by calculating a time difference from the first detection of the ACK segment to the last detection of the ACK segment.

[0213] Further, as indicated in the following equation (24), the FTP throughput [ini_ftp_tpt] at the side which sent the SYN+ACK segment is obtained by calculating a ratio of the amount [ftp_byt] of the total bytes to the time difference [ftp_dtime].

ini _(—) ftp _(—) tpt=ftp _(—) byt/ftp _(—) dtime  equation (24)

[0214] In the calculation of the FTP throughput [ini_ftp_tpt], it is possible to efficiently avoid an extraordinary amount by calculating the FTP throughput only when the continuously detected ACK segments than a predetermined quantity such as 10.

[0215] [Collection of FTP Throughput at a Side Which Sent SYN Segment]

[0216] Referring to a sequence chart shown in FIG. 9(b), the FTP throughput at a side which sent the SYN segment will be explained. To collect the FTP throughput, from a traffic in a direction which can be monitored, the SYN segment is detected, further continuous plural DATA segments, which belong to the same connection as the detected SYN segment, are detected.

[0217] In the embodiment, the FTP throughput [rsp_ftp_tpt], at the side which sent the SYN segment, is obtained by calculating a ratio of an amount of total bytes of the file to a time difference between a first segment and a last segment in the file transmission.

[0218] As shown in FIG. 9(b), when the SYN segment is detected in the monitored direction, an amount [ftp_byt] of the total bytes of the file is obtained by calculating a difference between a sequence number of the first detected DATA segment, and a sum of a sequence number of the last detected DATA segment and a user data length of te last detected DATA segment. Further, a time difference [ftp_dtime], from the first segment to the last segment in the file transmission, is obtained by calculating a time difference from the first detection of the DATA segment to the last detection of the DATA segment.

[0219] Further, as indicated in the following equation (25), the FTP throughput [rsp_ftp_tpt] at the side which sent the SYN segment is obtained by calculating a ratio of the amount [ftp_byt] of the total bytes to the time difference [ftp_dtime].

rsp _(—) ftp _(—) tpt=ftp _(—) byt/ftp _(—) dtime  equation (25)

[0220] In the calculation of the FTP throughput [rsp_ftp_tpt], it is possible to efficiently avoid an extraordinary amount by calculating the FTP throughput only when the continuously detected DATA segments than a predetermined quantity such as 10.

[0221] As mentioned-above, it is possible to identify the collected statistical traffic data, based on detecting the SYN segment or the SYN+ACK segment. Namely, it is possible to identify whether a monitored communication is the communication from the server or the communication from the client, based on detecting the SYN segment or the SYN +ACK segment.

[0222] [Effect of the Invention]

[0223] By the present invention, it is possible to estimate a traffic in a certain direction, where it is impossible to directly capture the traffic, from the opposite direction. Then, a large quantity of the traffic can be collected, and the present invention is useful for searching the traffic in the backbone line connected with the Internet. 

1. Method for collecting statistical traffic data comprising steps of: detecting an SYN segment from a traffic in one of two directions on the Internet line; detecting a DATA segment, which belongs to same connection as the detected SYN segment, from said traffic; and obtaining at least one of an amount of transmitted segment at a side which sent the detected SYN segment, and an amount of transmitted bytes at said side; wherein said amount of transmitted segment being obtained by counting a total amount of said detected DATA segment, and said amount of transmitted bytes being obtained by calculating a difference between a sequence number of the first detected DATA segment, and a sum of a sequence number of the last detected DATA segment and a user data length of said last detected DATA segment.
 2. Method for collecting statistical traffic data comprising steps of: detecting an SYN+ACK segment from a traffic in one of two directions on the Internet line; detecting a DATA segment, which belongs to same connection as the detected SYN+ACK segment, from said traffic; and obtaining at least one of an amount of transmitted segment at a side which sent the detected SYN+ACK segment, and an amount of transmitted bytes at said side; wherein said amount of transmitted segment being obtained by counting a total amount of said detected DATA segments, and said amount of transmitted bytes being obtained by calculating a difference between a sequence number of the first detected DATA segment, and a sum of a sequence number of the last detected DATA segment and a user data length of said last detected DATA segment.
 3. Method for collecting statistical traffic data comprising steps of: detecting an SYN segment from a traffic in one of two directions on the Internet line; detecting an ACK segment and a DATA segment, each of which belongs to same connection as the detected SYN segment, from said traffic; and calculating, as an amount of received data at a side which sent the detected SYN segment, a difference between an acknowledgment number of the first detected ACK segment or DATA segment and an acknowledgement number of the last detected ACK segment or DATA segment.
 4. Method for collecting statistical traffic data comprising steps of: detecting an SYN+ACK segment from a traffic in one of two directions on the Internet line; detecting an ACK segment and a DATA segment, each of which belongs to same connection as the detected SYN+ACK segment, from said traffic; and calculating, as an amount of received data at a side which sent the detected SYN+ACK segment, a difference between an acknowledgment number of the first detected ACK segment or DATA segment and an acknowledgement number of the last detected ACK segment or DATA segment.
 5. Method for collecting statistical traffic data comprising steps of: detecting an SYN segment from a traffic in one of two directions on the Internet line; detecting a DATA segment, which belongs to same connection as the detected SYN segment, from said traffic; determining a sequence number of a DATA segment to be sent next, at every detection of the DATA segment, based on a sequence number of the detected DATA segment; judging, at every detection of the DATA segment, whether a sequence number of the newly detected DATA segment is less than said determined sequence number at the last DATA segment detection; and obtaining, when the sequence number of the newly detected DATA segment is less than said determined sequence number, at least one of a new amount of re-transmitted segment at a side which sent the detected SYN segment, and a new amount of re-transmitted bytes at said side; wherein said new amount of re-transmitted segment being obtained by adding 1 to the last obtained amount of re-transmitted segment, and said new amount of re-transmitted bytes being obtained by adding a smaller one out of a first value and a second value to the last obtained amount of re-transmitted segment, wherein the first value being a difference between said determined sequence number and a sequence number of said newly detected DATA segment, and the second value being a user data length of said newly detected DATA segment.
 6. Method for collecting statistical traffic data comprising steps of: detecting an SYN+ACK segment from a traffic in one of two directions on the Internet line; detecting a DATA segment, which belongs to same connection as the detected SYN+ACK segment, from said traffic; determining a sequence number of a DATA segment to be sent next, at every detection of the DATA segment, based on a sequence number of the detected DATA segment; judging, at every detection of the DATA segment, whether a sequence number of the newly detected DATA segment is less than said determined sequence number at the last DATA segment detection; and obtaining, when the sequence number of the newly detected DATA segment is less than said determined sequence number, at least one of a new amount of re-transmitted segment at a side which sent the detected SYN+ACK segment, and a new amount of re-transmitted bytes at said side; wherein said new amount of re-transmitted segment being obtained by adding 1 to the last obtained amount of re-transmitted segment, and said new amount of re-transmitted bytes being obtained by adding a smaller one out of a first value and a second value to the last obtained amount of re-transmitted segment, wherein the first value being a difference between said determined sequence number and a sequence number of said newly detected DATA segment, and the second value being a user data length of said newly detected DATA segment.
 7. Method for collecting statistical traffic data comprising steps of: detecting an SYN segment from a traffic in one of two directions on the Internet line; detecting an ACK segment, which belongs to same connection as the detected SYN segment, from said traffic; determining an acknowledgment number of an ACK segment to be sent next and a window size of an ACK segment having the maximum acknowledgment number, at every detection of the ACK segment, based on an acknowledgment number of the detected ACK segment; judging, at every detection of the ACK segment, whether both of an acknowledgment number and a window size of the newly detected ACK segment are equal to said determined acknowledgment number and said determined window size at the last ACK segment detection; and obtaining, when both of the acknowledgment number and the window size of the newly detected two or more ACK segments are equal to said determined acknowledgment number and said determined window size, a new amount of missing DATA segment at a side which sent the detected SYN segments, by adding 1 to the last obtained amount of missing DATA segment.
 8. Method for collecting statistical traffic data comprising steps of: detecting an SYN+ACK segment from a traffic in one of two directions on the Internet line; detecting an ACK segment, which belongs to same connection as the detected SYN+ACK segment, from said traffic; determining an acknowledgment number of an ACK segment to be sent next and a window size of an ACK segment having the maximum acknowledgment number, at every detection of the ACK segment, based on an acknowledgment number of the detected ACK segment; judging, at every detection of the ACK segment, whether both of an acknowledgment number and a window size of the newly detected ACK segment are equal to said determined acknowledgment number and said determined window size at the last ACK segment detection; and obtaining, when both of the acknowledgment number and the window size of the newly detected two or more ACK segments are equal to said determined acknowledgment number and said determined window size, a new amount of missing DATA segment at a side which sent the detected SYN+ACK segments, by adding 1 to the last obtained amount of missing DATA segment.
 9. Method for collecting statistical traffic data comprising steps of: detecting an SYN segment from a traffic in one of two directions on the Internet line; detecting continuous plural DATA segments and continuous plural ACK segments in succession to the DATA segments, all of which belong to same connection as the detected SYN segment, from said traffic; and obtaining at least one of an HTTP response time at a side which sent the detected SYN segment, and an HTTP throughput at said side; wherein said HTTP response time being obtained by calculating a time difference from the last detection of the DATA segment to the first detection of the ACK segment, and said HTTP throughput being obtained by calculating a ratio of a difference, between an acknowledgement number of the first detected ACK segment and an acknowledgement number of the last detected ACK segment, to a time difference from the first detection of the ACK segment to the last detection of the ACK segment.
 10. Method for collecting statistical traffic data comprising steps of: detecting an SYN+ACK segment from a traffic in one of two directions on the Internet line; detecting continuous plural ACK segments and continuous plural DATA segments in succession to the ACK segments, all of which belong to same connection as the detected SYN+ACK segment, from said traffic; and obtaining at least one of an HTTP response time at a side which sent the detected SYN+ACK segment, and an HTTP throughput at said side; wherein said HTTP response time being obtained by calculating a time difference from the last detection of the ACK segment to the first detection of the DATA segment, and said HTTP throughput being obtained by calculating a ratio of a difference, between a sequence number of the first detected DATA segment and a sum of a sequence number of the last detected DATA segment and a user data length of the last detected DATA segment, to a time difference from the first detection of the DATA segment to the last detection of the DATA segment.
 11. Method for collecting statistical traffic data comprising steps of: detecting an SYN+ACK segment from a traffic in one of two directions on the Internet line; detecting continuous plural ACK segments, which belong to same connection as the detected SYN+ACK segment, from said traffic; and calculating, as an FTP throughput at a side which sent the detected SYN+ACK segment, a ratio of a difference, between an acknowledgement number of the first detected ACK segment and an acknowledgement number of the last detected ACK segment, to a time difference from the first detection of the ACK segment to the last detection of the ACK segment.
 12. Method for collecting statistical traffic data comprising steps of: detecting an SYN segment from a traffic in one of two directions on the Internet line; detecting continuous plural DATA segments, which belong to same connection as the detected SYN segment, from said traffic; and calculating, as an FTP throughput at a side which sent the detected SYN segment, a ratio of a difference, between a sequence number of the first detected DATA segment and a sum of a sequence number of the last detected DATA segment and a user data length of the last detected DATA segment, to a time difference from the first detection of the DATA segment to the last detection of the DATA segment. 